<template>
    <span>{{ flag + 1 }}:{{ result === null ? "未完成" : (result ? "正确" : "错误") }}
    </span>
</template>

<script>
export default {
    name: "FlagItem",
    props: {
        flag: Number,
        result: Boolean,
    },
};
</script>

<style scoped>
.right {
    color: green;
}

.error {
    color: red;
}

.undo {
    color: #ccc;
}
</style>